<?php
	class GP_dispatch
	{
		static $_instance;
		
		// singleton
		public function &getInstance() 
		{
			if (!self::$_instance instanceof self)
				self::$_instance = new self();
			return self::$_instance;
		}
		
		function __construct()
		{
			global $page;
			require_once(DIR_SCRIPTS . $page . '.' . EXTENSION);
		}
	}
?>